<#assign contextPath=springMacroRequestContext.getContextPath() />
<#import "/public/frame/main.html" as frame />
 <@frame.head "南航明珠商城-商品列表">
</@frame.head>
 
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>订单详情</title>
	 <link rel="stylesheet" href="${contextPath}/resources/css/order/reset.css"/>
	<script type="text/javascript" src="${contextPath}/resources/js/order/safe.js"></script>  
	
	
<body>
	<div class="zp_pop">
		
		<table class="table table-border table-bordered table-bg">
			<tr><td colspan="3"><font size="2"> <b>订单详情</b></font></td></tr>
		    <tbody><tr class="text-c" style="text-align: left;">
				<td width="25%"  style="text-align: left;">订单号：${order.id}  </td>
				<td width="20%" style="text-align: left;">下单时间：${order.orderTime?date}</td>
				<td width="20%" style="text-align: left;">用户名：${memberInfo.name}</td> 
				</tr>
			<tr  class="text-c" >
			<td width="20%"  style="text-align: left;">用户等级：
					<#if memberInfo.mlevel ==  1 >普通卡
					<#elseif  memberInfo.mlevel== 2 >银卡
					<#elseif memberInfo.mlevel ==  3 >金卡
					<#elseif memberInfo.mlevel ==  4 >公司卡
						<#elseif memberInfo.mlevel ==  7 >白金卡
					</#if>
			</td>
				<td width="20%"  style="text-align: left;">订单状态：
							<#if order.state==1>未支付
							<#elseif order.state==2>已支付
							<#elseif order.state==3>信息不正确
							<#elseif order.state==4>挂起
							<#elseif order.state==5>发货
							<#elseif order.state==6>已发货 
							<#elseif order.state==7>订单已取消 
							<#elseif order.state==8>已签收 
							<#elseif order.state==9>已退款 
							<#elseif order.state==10>已拒签 
							<#elseif order.state==11>支付处理中 
							<#elseif order.state==12>支付失败 
							<#elseif order.state==13>发放成功 
							<#elseif order.state==14>发放中 
							</#if>
				</td>
				<td  style="text-align: left;">
				订单来源：
				<#if order.orderSource=="M">移动端
	 			<#elseif order.orderSource=="P">PC端
 			 	<#else> 
 			 	 ${order.orderSource }
 			 	</#if>
				</td>
				<#if order.orderType== 3 >
					<td  style="text-align: left;">
						常客订单号：
						${order.skbOrderNo}
					</td>
				</#if>
			</tr>
			
		</tbody>
		</table>
		
		<div>
		    <table class="table table-border table-bordered table-bg" style="margin-top: -1px;">
		    
			<tbody>
				<tr class="th_border" >
				<th class="zp_t_name" style="text-align: center;" width="20%">商品名称</td>
				
				<th class="zp_t_price" style="text-align: center;"  width="10%">单价</th>
				<th class="zp_t_num"  style="text-align: center;" width="5%">数量</th>
				<th class="zp_t_num" style="text-align: center;"  width="10%">颜色</th>
				<th class="zp_t_num" style="text-align: center;"  width="10%">尺寸</th>
				<th class="zp_t_wl"style="text-align: center;"  width="5%">物流费用</th>
				<th class="zp_t_wl"  style="text-align: center;" width="20%">进销存发货编码</th>
				<!-- <th width="10%" class="zp_t_wl">状态</th> -->
				<th class="zp_t_total"  style="text-align: center;" width="10%">小计</th>
				<th class="zp_t_total" style="text-align: center;" width="10%">快递公司</th>
				<th class="zp_t_total" style="text-align: center;"  width="10%">快递单号</th>
			</tr>
			<#if orderDetailList?? && (orderDetailList?size &gt; 0) >
        	<#list orderDetailList as orderdetil > 
        		  <tr>
				     	    <td>
							  ${orderdetil.product.baseInfo.name}
							</td>
							<#if orderdetil.orderType==3>
							<td>
									 ${order.activeNo}  
							</td>
							</#if>
							<#if  orderdetil.buyType==1 >
							  <td>
							    ${orderdetil.mileages}里程
							  </td>
							</#if>
							
							<#if  orderdetil.buyType==2 >
							  <td>
							       ${orderdetil.mileages}里程+￥ ${orderdetil.prices} 
							  </td>
							</#if>
							<#if  orderdetil.buyType==3 >
							  <td>
							      ￥ ${orderdetil.prices} 
							  </td>
							</#if>
							<td>
							 ${orderdetil.buyNum}  
							</td>
							<td>
								 ${orderdetil.styleName}     
							</td>
							<td>	
							 ${orderdetil.sizeName}     
							</td>
							<td>
							  无
							</td>
							<td>
							 ${orderdetil.sizesName}    
							   
							</td>	
							<td>						
							<#if  orderdetil.buyType==1 >
							  ${orderdetil.mileages*orderdetil.buyNum}里程
							<#elseif orderdetil.buyType==2>
								${orderdetil.mileages*orderdetil.buyNum}里程+￥${(orderdetil.prices*orderdetil.buyNum)?string.number} 
							<#elseif  orderdetil.buyType== 3>
							      ￥${(orderdetil.prices*orderdetil.buyNum)?string.number} 
							</#if>  
							<td>
								${orderdetil.sendName}
							</td>
							
							<td>
								
								${orderdetil.sendNo}
							</td>													
			     	    </tr>			     	   
		     	    </div>
		     	    <div>
		               	<#if orderdetil.orderPresentList?? && (orderdetil.orderPresentList?size > 0)>
		     			<#list orderdetil.orderPresentList as orderPresent>
		     			        		  <tr>
				     	    <td>
							  【买赠】${orderPresent.present.name}
							</td>
							<#if orderdetil.orderType==3>
							<td>
									
							</td>
							</#if>
							
							  <td>
							    0里程
							  </td>
							
							<td>
							 ${orderPresent.presentNum?c}
							</td>
							<td>
								 
							</td>
							<td>	
							 
							</td>
							<td>
							  无
							</td>
							<td>
							CS000${orderPresent.present.id?c}0000000000
							</td>	
							<td>						
								0
							<td>
								
							</td>
							
							<td>
								
								
							</td>													
			     	    </tr>	
		     			</#list>
		     			</#if>
     			
		     	    </div>
	     	   <!--  </s:iterator>
     	    </s:else> -->
     	    
        	</#list>
        	    <#if order.orderPresentList?? && (order.orderPresentList?size > 0)>
     			<#list order.orderPresentList as orderPresent>
     					     			        		  <tr>
				     	    <td>
							  【满赠】${orderPresent.present.name}
							</td>
							<#if orderdetil.orderType==3>
							<td>
									
							</td>
							</#if>
							
							  <td>
							    0里程
							  </td>
							
							<td>
							 ${orderPresent.presentNum?c}
							</td>
							<td>
								 
							</td>
							<td>	
							 
							</td>
							<td>
							  无
							</td>
							<td>
							CS000${orderPresent.present.id?c}0000000000
							</td>	
							<td>						
								0
							<td>
								
							</td>
							
							<td>
								
								
							</td>													
			     	    </tr>
     			
     			</#list>
     			</#if>
        	
        	<#else>  <tr><td colspan="6" align="center">暂无订单明细信息</td></tr>
        	</#if>
			<!-- <s:if test=" orderDetailList== null || orderDetailList.isEmpty()">
			        <s:div><tr><td colspan="6" align="center">暂无订单明细信息</td></tr></s:div>  
     	    </s:if> -->
     	    
     	</tbody></table>
     	
     	     <div align="right">
     	     商品数量：${productNum}<br>
	     	    赠品数量：${presentNum}<br>
	     	 商品总价(含运费)：${order.orderPayInfo.mileages}
	     	      
	     	    
     	    </div> 
     	
     	<table class="table table-border table-bordered table-bg"> 
     	
     	
     	
     	<#if  order.orderType==1> 
		<tr><td colspan="5" style="text-align: center;"><font size="2"> <b>配送与物流信息</b></font></td></tr>
		<tr>
		    <td>   收货人：${order.receiveInfo.recName}</td>
		 	<td>   电话号码：${ order.receiveInfo.recPhone}</td>
		    <td>   手机号码：${order.receiveInfo.recMobil}</td>
		  	<td>   配送地址：${order.receiveInfo.provCityArea} ${order.receiveInfo.recAddress}</td>
		    <td>   邮编：${order.receiveInfo.recPostno} </td> 
         </tr>
		<tr><td colspan="5">
			    配送时间：<#if  order.sendTime== 0 >时间不限
				  <#elseif order.sendTime==1>工作日送货 
				  <#elseif order.sendTime==2>节假日送货  
				 </#if>
				</td> 
		</p>
		</#if>
		<#if order.orderType==2>
		 <tr  class="text-c" >
		  <td colspan="4"><font size="2"> <b> 订单信息</b></font> </td>
		  </tr> 
		 <tr>
		<td>    商品类型：虚拟商品   </td>
	 
		<td> 备注：${order.remark} </td>
		<td>
		     电子码信息  :
		</td>
			<td>接收电子码手机号：${order.xn_phone} 	</td>
		</tr> 
		</#if>	
		<#if  order.orderType==3>
		 <tr  class="text-c" >
		  <td colspan="2"> <font size="2"> <b> 订单信息</b></font> </td>
		  </tr> 
		<tr> 
		 <td>
		    商品类型：机票优惠券   
		 </td>
		 <td>备注：${order.remark}</td>
		 </tr>
		</#if>
		
		
		<#if  presentMap?? &&  ( presentMap?size &gt; 0)>
			<tr> <td style="text-align: center;"><font size="2"> <b> 赠品信息</b></font></td></tr>
			<tr><td>
        	   	   <#list  presentMap ?keys as key> 
			  		 	${key}X	${presentMap[key]} <br/>   
			      </#list></td>
			</tr>
		</#if>	
		
		<#if  order.orderType== 4>
			<#if  order.orderOtherTypeDetail.orderSubType==1 >
				<tr><td colspan="7"><font size="2"> <b>购票信息</b></font></td></tr>
				<tr class="text-c">
				<th>计划乘机日期</th>
				<th>出发城市</th>
				<th>到达城市</th>
				<th>乘机人姓名</th>
				<th>乘机人身份证号</th>
				<th>付款人姓名</th>
				<th>联系手机号</th>
				</tr>
				<tr>
				<td>${order.orderOtherTypeDetail.startDate?date} </p>
				<td>${order.orderOtherTypeDetail.fromCity}</td>
				<td>${order.orderOtherTypeDetail.toCity}</td>
				<td>${order.orderOtherTypeDetail.guestName}</td>
				<td>${order.orderOtherTypeDetail.guestIdNum}</td>
				<td>${order.orderOtherTypeDetail.payUserName}</td>
				<td>${order.orderOtherTypeDetail.contactPhone} </td>
		 </tr>
			<#elseif  order.orderOtherTypeDetail.orderSubType==2 >
			<tr><td colspan="3"><font size="2"> <b>升舱信息</b></font></td></tr>
			<tr>
				<td>机票票号：${order.orderOtherTypeDetail.airTicketNum} </td>
				<td>升舱支付人：${order.orderOtherTypeDetail.payUserName} </td>
				<td>联系手机号： ${order.orderOtherTypeDetail.contactPhone}</td>
			</tr>	
			 </#if>
		</#if>
		
		</table>
		
	
		
		<div align="center">
		<table class="table table-border table-bordered table-bg" style="margin-top: -1px;">
		<tr> <td colspan="6" ><font size="2"> <b>其他信息</b></font></td></tr>
		<tr> <td colspan="6" style="text-align: left;"> 备注：  ${order.remark} </td>  </tr>
		<tr> <td colspan="6" ><font size="2"> <b>操作日志</b></font></td></td>	
		<tr>
					<td width="20%" style="text-align: center;"  >操作用户</td>
					<td width="20%"style="text-align: center;" >操作管理员</td>
					<td width="20%" style="text-align: center;" >操作内容</td>
					<td width="20%" style="text-align: center;" >操作时间</td>
					<td width="20%" style="text-align: center;" >退换货/退款记录id</td>
					<td width="20%" style="text-align: center;" ></td>
		</tr>
				<#if  orderLogList?? &&  ( orderLogList?size &gt; 0)>
				<#list  orderLogList as ologList > 
				<tr>
				<td>${ologList.memberNo }</td>
				<td>
					<#if ologList.userId == 0 >进销存通知 
					<#else>${ologList.userId} 
					</#if>
				</td>
				<td>
					<#if ologList.operateType == "8-4">换货处理中
					<#elseif ologList.operateType == "10-3">退货处理中
					<#elseif ologList.operateType == "10-4">换货处理中
					<#elseif ologList.operateType == "10-7">换货已入库
					<#elseif ologList.operateType == "10-8">换货已出库
					<#elseif ologList.operateType == "8-7">换货已入库
					<#elseif ologList.operateType == "8-8">换货已出库
					<#elseif ologList.operateType == "8-6">换货已签收
					<#elseif ologList.operateType == "8-3">退货处理中
					<#elseif ologList.operateType == "8-11">待审核
					<#elseif ologList.operateType == "6-11">待审核
					<#elseif ologList.operateType == "10-6">换货已签收
					<#elseif ologList.operateType == "8-5">退货已入库
					<#elseif ologList.operateType == "10-5">退货已入库
					<#elseif ologList.operateType == "10-11">待审核
					<#elseif ologList.operateType == "00">退款成功
					<#elseif ologList.operateType == "0">申请退款
					<#elseif ologList.operateType == "1">下单
					<#elseif ologList.operateType == "2" && ologList.userId==null>支付
					<#elseif ologList.operateType == "2" && ologList.userId!=null>信息处理成功
					<#elseif ologList.operateType == "3">标识为信息不正确
					<#elseif ologList.operateType == "4">挂起
					<#elseif ologList.operateType == "5">发货中
					<#elseif ologList.operateType == "6">已发货
					<#elseif ologList.operateType == "7">取消订单
					<#elseif ologList.operateType == "8">签收
					<#elseif ologList.operateType == "10">拒签
					<#elseif ologList.operateType == "11">支付处理中
					<#elseif ologList.operateType == "12">支付失败
				    <#elseif ologList.operateType == "13">发放成功
				    <#elseif ologList.operateType == "14">发放中
				    </#if>
				</td>
				<td>
					${ologList.operateTime?datetime}
				</td>
				<td>
					${ologList.remark }
				</td>
				</tr>
				</#list>
				</#if>	
				
				</table>
				<br />
	<!-- 			
		<table><tbody><tr><td class="wbq-bnt">
		 
		</td></tr></tbody></table> -->
		
</div>
	</div></div>
</body>
<script type="text/javascript" src="${contextPath}/resources/lib/My97DatePicker/4.8/WdatePicker.js"></script>
<script type="text/javascript" src="${contextPath}/resources/js/laypage/laypage.js"></script>
<@frame.end "default">
</@frame.end>
